﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Control_General_SaveTool : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    #region ActionHandle

    public  event EventHandler SaveClick;
    public  event EventHandler CancelClick;
    public  event EventHandler ApplyClick;

    protected override void OnInit(EventArgs e)
    {

        InitializeComponent();
        base.OnInit(e);
    }

    private void InitializeComponent()
    {
        bt_Apply.Click += new ImageClickEventHandler(bt_Apply_Click);
        bt_Cancel.Click += new ImageClickEventHandler(bt_Cancel_Click);
        bt_Save.Click += new ImageClickEventHandler(bt_Save_Click);
    }

    void bt_Save_Click(object sender, ImageClickEventArgs e)
    {
        if (SaveClick != null)
        {
            SaveClick(sender, e);
        }
    }

    void bt_Cancel_Click(object sender, ImageClickEventArgs e)
    {
        if (CancelClick != null)
        {
            CancelClick(sender, e);
        }
    }

    void bt_Apply_Click(object sender, ImageClickEventArgs e)
    {
        if (ApplyClick != null)
        {
            ApplyClick(sender, e);
        }
    }






    #endregion
}
